package com.runcode.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 使用Feign 调用微服务
 * value 值为 producer项目中的 spring.application.name
 * @author w
 */
//@FeignClient(value = "cloud-producer")
public interface ProducerService {

	/**
	 * @RequestParam 注解不可省略，否则参数无法传递
	 * @param name
	 * @return
	 */
	@RequestMapping(value = "/hello")
	String producerHello(@RequestParam(value = "name") String name);
	
}
